package com.baizhi.controller;

import com.baizhi.annotation.LogAnnotation;
import com.baizhi.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Controller
@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;

   /* @RequestMapping("/selectAllByPageLog")
    @LogAnnotation(value = "查询所有日志信息",type = "select")
    public Map selectAllByPageLog(int page, int limit, String logContent, String logType){

        return logService.selectAllByPageLog(page,limit,logContent,logType);
    }*/


    @RequestMapping("/selectAllByPageLog")
    @LogAnnotation(value = "查询所有日志信息",type = "select")
    public Map selectAllByPageLog(int page, int limit, String logType){

        return logService.selectAllByPageLog(page,limit,logType);
    }


}
